package com.kyist.frp.bean;

import cn.hutool.json.JSONObject;


import java.util.*;

/**
 * Frpc 客户端连接信息
 */
public class FrpcInfo {
    private String User;

    private String run_id;

    //状态，控制客户端下线 "on" 与 "off"
    private String status = "on";

    private JSONObject metas;

    //最后一次发起ping的时间
    private Date lastPing;

    private Map<String,JSONObject> proxyInfo = new HashMap<>();

    private int pool_count;


    public int getPool_count() {
        return pool_count;
    }

    public void setPool_count(int pool_count) {
        this.pool_count = pool_count;
    }


    public Date getLastPing() {
        return lastPing;
    }

    public void setLastPing(Date lastPing) {
        this.lastPing = lastPing;
    }

    public String getUser() {
        return User;
    }

    public void setUser(String user) {
        User = user;
    }

    public String getRun_id() {
        return run_id;
    }

    public void setRun_id(String run_id) {
        this.run_id = run_id;
    }

    public JSONObject getMetas() {
        return metas;
    }

    public void setMetas(JSONObject metas) {
        this.metas = metas;
    }

    public Map<String,JSONObject> getProxyInfo() {
        return proxyInfo;
    }

    public void setProxyInfo(Map<String,JSONObject> proxyInfo) {
        this.proxyInfo.putAll(proxyInfo);
    }

    public void setProxyInfo(String proxy_name,JSONObject proxyInfo) {
        this.proxyInfo.put(proxy_name,proxyInfo);
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
